package dLogistic.domain.model.Kurier;

import java.util.UUID;

/**
 * Created by Przemek on 2014-10-24.
 */
public class KurierFactory {

    public KurierAggr dodajKuriera(String nazwa){
        UUID uuid = UUID.randomUUID();

        KurierAggr kur =  new KurierAggr(nazwa, uuid.toString());

        KurierRepository kurRep = new KurierRepository();
        kurRep.zapisz(kur);
        return kur;
    }

}
